package fm.controller;

import fm.cache.AreaCache;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 61741 on 2017/12/4.
 */
@Controller
@RequestMapping("/seller")
public class SellerController extends BaseController {
    @RequestMapping("index/{pageType}")
    public String index(ModelMap modelMap,@PathVariable String pageType){
       modelMap.put("citys", AreaCache.getAllCity());
       modelMap.put("provinces",AreaCache.getAllProvince());
       modelMap.put("pageType",pageType);
        return "portal/seller";
    }
}
